package com.treasure.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.treasure.common.types.Corp;
import com.treasure.common.types.CorpInvitationCode;
import com.treasure.infrastructure.model.po.CorpInfo;
import com.treasure.infrastructure.model.po.CorpUserInfo;
import com.treasure.web.command.request.CorpInfoEditRequest;
import com.treasure.web.command.response.CorpInfoResponse;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sunhongmin
 * @since 2023-11-11
 */
public interface ICorpInfoService extends IService<CorpInfo> {

    CorpInfo getEffectiveCorpInfo(Corp corp);

    CorpInfo getEffectiveCorpInfo(CorpInvitationCode corpInvitationCode);

    CorpInfoResponse getCorpInfo();

    void corpInfoEdit(CorpInfoEditRequest corpInfoEditRequest);

    List<CorpUserInfo> queryUserListByNameLike(String userName, String corpId);
}
